# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-argparse
pkgver=1.4.0
pkgrel=6
pkgdesc='Python command-line parsing library.'
arch=('any')
url='https://pypi.python.org/pypi/argparse'
license=('python')
makedepends=('python2' 'python2-setuptools')
source=("https://pypi.python.org/packages/source/a/argparse/argparse-$pkgver.tar.gz")
md5sums=('08062d2ceb6596fcbc5a7e725b53746f')

build() {
  cd "argparse-$pkgver"

  python2 setup.py build
}

package() {
  cd "argparse-$pkgver"

  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build

  install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

